<style>
    .forx {
        display: none;
    }

    .selectator_element {
        border-radius: 0;
    }
</style>
{{$user:=.user}}
<div class="panel panel-default">
    <div class="panel-body">
        <form class="form-horizontal ajaxform" ajaxSuccess="success" ajaxAlways="always" method="post" action="/user/profile">
            <input type="hidden" name="user_id" value="{{$user.user_id}}">
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>用户名</label>
                <div class="col-sm-4">
                    <input type="text" name="username" class="form-control" disabled value="{{$user.username}}">
                </div>
                <div class="col-md-4">
                    <span class="text-danger"></span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>姓名</label>
                <div class="col-sm-4">
                    <input type="text" name="given_name" class="form-control" value="{{$user.given_name}}">
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>邮箱</label>
                <div class="col-sm-4">
                    <input type="text" name="email" class="form-control" value="{{$user.email}}">
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="text-danger"> * </span>手机号</label>
                <div class="col-sm-4">
                    <input type="text" name="mobile" class="form-control" value="{{$user.mobile}}">
                </div>
                <div class="col-md-4">
                    <span class="text-danger"> * </span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-success">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>